package com.atguigu.exam.service;

import com.atguigu.exam.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category> {
    /*
     * 查询所有分类和分类题目数量
     */
    List<Category> getCategoryList();

    List<Category> getCategoryTree();

    void saveCategory(Category category);

    void updateCategory(Category category);

    void removeCategoryById(Long id);
}